package com.annotation.lifeCycle.init;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: qiuli
 * @date: 2022/1/7 18:37
 * @description:
 */

@Configuration
public class LifeCycleConfig {

    @Bean(initMethod = "init",destroyMethod = "destroy")
    public Car car() {
        return new Car();
    }
}
